package com.zhongyi.ui;

import com.zhongyi.factory.BeanFactory;
import com.zhongyi.service.IAccountService;
import com.zhongyi.service.impl.AccountServiceImpl;

public class Client {
    public static void main(String[] args) {

//        IAccountService service = new AccountServiceImpl();
        IAccountService service = (IAccountService) BeanFactory.getBean("accountService");

        for(int i=0;i<5;i++){
            System.out.println(service);
            service.saveAccount();
        }

    }
}
